package cn.wolfcode.p2p.business.mapper;

import cn.wolfcode.p2p.base.query.RechargeOfflineQueryObject;
import cn.wolfcode.p2p.business.domain.RechargeOffline;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RechargeOfflineMapper {

    int insert(RechargeOffline record);

    RechargeOffline selectByPrimaryKey(Long id);

    int updateByPrimaryKey(RechargeOffline record);

    /**
     * 查询交易单号
     *
     * @param states
     * @param tradeCode
     * @return
     */
    int selectByTradeCode(@Param("states") int[] states, @Param("tradeCode") String tradeCode);

    int queryForCount(RechargeOfflineQueryObject qo);

    List<RechargeOffline> queryForList(RechargeOfflineQueryObject qo);
}